package com.a1anwang.okble.client.scan;

/**
 * Created by a1anwang.com on 2017/6/26.
 * contact：www.a1anwang.com
 */
public interface DeviceScanCallBack {
    /**
     * SCAN_FAILED_BLUETOOTH_DISABLE 状态
     */
    int SCAN_FAILED_BLUETOOTH_DISABLE = 1;
    /**
     * SCAN_FAILED_BLE_NOT_SUPPORT 状态
     */
    int SCAN_FAILED_BLE_NOT_SUPPORT = 2;
    /**
     * SCAN_FAILED_LOCATION_PERMISSION_DISABLE 状态
     */
    int SCAN_FAILED_LOCATION_PERMISSION_DISABLE = 3;
    /**
     * SCAN_FAILED_LOCATION_PERMISSION_DISABLE_FOREVER 状态
     */
    int SCAN_FAILED_LOCATION_PERMISSION_DISABLE_FOREVER = 4;
    /**
     * SCAN_FAILED_SYSTEM 状态
     */
    int SCAN_FAILED_SYSTEM = 5;
    /**
     * 扫描
     *
     * @param device 设备
     * @param rssi  rssi
     */
    void onBLEDeviceScan(BLEScanResult device, final int rssi);
    /**
     * 失败
     *
     * @param code code
     */
    void onFailed(int code);
    /**
     * 成功
     */
    void onStartSuccess();
}
